package com.kuang.system.domain;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.kuang.bascic.baseDomain.Domian;
import com.kuang.org.domain.Department;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Menu  extends Domian {
    private String component;
    private String name;
    private String url;
    private String icon;
    private Integer index;
    private String intro;
    private Long state;
    private Menu parent;// 上级部门
    private Long parent_id;
    @JsonInclude(JsonInclude.Include.NON_EMPTY) // 拦截级联空的住数组
    List<Menu> children = new ArrayList<>();
    private Menu menus;

}
